package com.uzhie.exception;

/**
 * 字典表错误分类
 * Created by lilongfei on 2018/7/18.
 */
public class BaseDataException extends BussException {


    public BaseDataException(String error) {
        this(0, error);
    }

    public BaseDataException(int status, String error) {
        super(error);
    }

    public class Status {
        public final static String STATUS_ERROR = "字典状态异常";
        public final static String CANT_DELETE = "字典已被引用,不可删除";


        public final static String BASE_DATA_ISNULL = "字典对象不可为空";
        public final static String STATUS_ISNULL = "字典状态不可以为空";
        public final static String TYPE_ISNULL = "字典类型不可以为空";
        public final static String KEY_ISNULL = "字典KEY不可以为空";
        public final static String VALUE_ISNULL = "字典VALUE不可以为空";
        public final static String LEVEL_ISNULL = "字典等级不可为空";
        public final static String ID_ISNULL = "字典ID不可为空";

    }
}
